## 如果继承的结果是 菱形
## 顺序： A B D C : 注意，这里就没有继续的D 的顺序了

# class D:
#     age = 'd'
#     pass
# 
# class C(D):
#     # age = 'c'
#     pass
# 
# class B(D):
#     # age = 'b'
#     pass
# 
# 
# class A(B, C):
#     # age = 'a'
#     pass
# 
# a = A()
# 
# print(a.age) # d
# 
# 
# 

# 
class D:
    # age = 'd'
    pass

class C(D):
    age = 'c'
    pass

class B(D):
    # age = 'b'
    pass


class A(B, C):
    # age = 'a'
    pass

a = A()

print(a.age) # d

